package com.pay.mapper;

import com.pay.entity.ConsumerLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author zhouyihe
 * @since 2023-02-16
 */
@Mapper
public interface ConsumerLogMapper extends BaseMapper<ConsumerLog> {
    @Select("SELECT id as id ,message_id as messageid ,relation_id as \n" +
            "relationid,remarks as remarks,create_date as createdate,\n" +
            "update_date as updatedate\n" +
            "from pay_consumer_log where message_id=#{messageId} ")
    ConsumerLog getByMsgIdConsumerLog(String messageId);
}